﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Trang_web/Khach_Hang.master" AutoEventWireup="true" CodeFile="Trang_chi_tiet.aspx.cs" Inherits="Trang_web_Trang_chi_tiet" %>



<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderNoiDung" Runat="Server">
    <div style="background-image: url('../Hinh/button.png'); text-align:center;">
        <span style="font-weight: bold">CHI TIẾT SÁCH</span>
    </div>
    <table align="left" cellpadding="0" cellspacing="0" style="background-position: 960px; width: 580px; background-image: url('../Hinh/bg.jpg'); padding-top: 30px;">
        <tr>
            <td rowspan="5" valign="top" width="100px" align="center">
                &nbsp;&nbsp;<asp:Image ID="Image_sach" runat="server" 
                    Height="100px" Width="80px"/>
            &nbsp;&nbsp;
                </td>
            <td align="left" valign="top">
                <strong>
                <asp:Label ID="Ma_sach" runat="server" style="color:Blue; font-size: medium" 
                    Text='<%# Eval("maSach") %>'></asp:Label>
                <br />
                <asp:Label ID="Ten_sach" runat="server" 
                    style="color: #003300; font-size: medium" Text='<%# Eval("tenSach") %>'></asp:Label>
                </strong>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
            Thể loại: 
                <asp:Label ID="The_loai" runat="server" Text='<%# Eval("theLoai") %>'></asp:Label>
                <br />
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
            Nhà xuất bản: 
                <asp:Label ID="NXB" runat="server" Text='<%# Eval("tenNXB") %>'></asp:Label>
                <br />
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
            Tác giả:
                <asp:Label ID="Tac_gia" runat="server" Text='<%# Eval("tacGia") %>'></asp:Label>
                <br />
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <asp:Label ID="Noi_dung" runat="server" Text='<%# Eval("ndSach") %>'></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center" valign="bottom" style="height: 25px">
                <asp:TextBox ID="txtCTSLMua" runat="server" Width="34px" 
                    ontextchanged="txtCTSLMua_TextChanged">1</asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtCTSLMua" Display="Dynamic" ErrorMessage="*" 
                    ValidationExpression="[123]"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ControlToValidate="txtCTSLMua" ErrorMessage="*" Display="Dynamic">*</asp:RequiredFieldValidator>
                <br />
                <asp:ImageButton ID="ImageButtonMua" runat="server" CommandName="Mua" 
                    ImageUrl="~/Hinh/btn_chon.jpg" onclick="ImageButtonMua_Click" 
                    ToolTip="Chọn mua từ 1-3 sản phẩm" ViewStateMode="Enabled" />
            </td>
            <td align="left" valign="bottom" style="height: 25px">
                <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Overline="False" 
                    Font-Size="11pt" ForeColor="#009900" Text="Đơn giá:"></asp:Label>
                <asp:Label ID="LabelDonGia" runat="server" Font-Bold="True" Font-Size="11pt" 
                    ForeColor="#CC3300" Text='<%# Eval("giaSach","{0:#,### VND}") %>'></asp:Label>
            </td>
        </tr>
        <tr>
            <td valign="top" width="80px" colspan="2" align="left">
                <span style="color: #FF0000">Mỗi sản phẩm trên 1 hoá đơn chỉ chọn tối đa 3 sản phẩm</span><br />
               <asp:Label ID="don_gia" runat="server" Text='<%# Eval("don_gia") %>' 
                    Visible="False"></asp:Label>
                <asp:Label ID="idSach" runat="server" Text="<%# idSach %>" Visible="False"></asp:Label>
            </td>
        </tr>
    </table>
</asp:Content>

